import request from '@/utils/request'

export default {

    getPage(page, limit) {
        return request({
            url: `/servicecms/crmbannerAdmin/${page}/${limit}`,
            method: 'get',
        })
    },
    delTeacher(id) {
        return request({
            url: `/serviceedu/edu-teacher/del/${id}`,
            method: 'delete',
            //teacherQuery条件对象，后端使用RequestBody获取对象
            data: id
        })
    },
    addBanner(banner){
        return request({
            url: `/servicecms/crmbannerAdmin/save`,
            method: 'post',
            data: banner
        })
    },
    updateById(banner){
        return request({
            url: `/servicecms/crmbannerAdmin/update`,
            method: 'put',
            data: banner
        })
    },
    getBannerInfo(id){
        return request({
            url: `/servicecms/crmbannerAdmin/get/${id}`,
            method: 'get',
            params: id
        })
    }
}
